<%--
  Created by IntelliJ IDEA.
  User: EX-ZHANZHENQIANG001
  Date: 2018-04-26
  Time: 10:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
    <title>购物车</title>
</head>
<body>

    <h4><a href="<%=request.getContextPath()%>/shoopingCart/addCommodityInit.do">继续选购商品</a></h4>
    <h4><a href="<%=request.getContextPath()%>/home/init.do">跳转首页</a></h4>

    <%--显示商品列表--%>
    <table style="border: 1px">
        <tr>
            <td>商品名称</td>
            <td>商品数量</td>
            <td>商品单价</td>
            <td>商品总价</td>
        </tr>
        <c:forEach items="${commodityList}" var="cart">
            <tr>
                <td>${cart.cname}</td>
                <td>${cart.count}</td>
                <td>${cart.price}</td>
                <td>${cart.priceCount}</td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>
